package com.yfp.goods.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;
import java.io.Serializable;

/**
 * 图片资源表(ImgResource)实体类
 *
 *
 * @since 2023-12-20 22:23:42
 */
@Schema(title = "图片资源")
public class ImgResource implements Serializable {
    private static final long serialVersionUID = 507114225382612029L;
    /**
     * 图片id
     */
    @Schema(title = "图片id")
    private String imgId;
    /**
     * 图片url
     */
    @Schema(title = "图片url")
    private String url;
    /**
     * 图片大小
     */
    @Schema(title = "图片大小")
    private String size;
    /**
     * 宽
     */
    @Schema(title = "宽")
    private Integer width;
    /**
     * 高
     */
    @Schema(title ="高")
    private Integer height;
    /**
     * MD5值
     */
    @Schema(title = "MD5值")
    private String md5;
    /**
     * 图片格式
     */
    @Schema(title = "图片格式")
    private String format;
    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}

